<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表白墙</title>
</head>
<style>
    *{
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

        .container {
            width: 400px;
            margin: 0 auto;
        }

        .container h2 {
            margin: 20px 0;
            text-align: center;
        }    

        .container .sub-title {
            color: #666;
            text-align: center;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .container .row {
            width: 100%;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container span {
            width: 80px;
        }

        .container input {
            width: 200px;
            height: 30px;
        }

        .container .row>button {
            width: 280px;
            height: 30px;
            background-color: orange;
            border: none;
            color: white
        }

        .container .row>button:active {
            background-color: #666;
        }

</style> 
<body>
    <div class="container">
        <h2 >表白墙</h2>
        <p class="sub-title">输入后点提交,会将内容显示在表格中</p>

        <div class="row">
            <span>谁：</span>
            <input type="text">
        </div>
        <div class="row">
            <span>对谁：</span>
            <input type="text">
        </div>
        <div class="row">
            <span>说什么：</span>
            <input type="text">
        </div>
        <div class="row">
            <button calss="submit">提交</button>
        </div>
    </div>
</body>
</html>